package com.pt25.service.sys.repository.mysql.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pt25.base.dep.db.po.BasePo;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(
    callSuper = true
)
@TableName("sys_config_value")
public class ConfigValuePo extends BasePo implements Serializable {
  @TableField(
      exist = false
  )
  public static final String key = "sys_config_value";

  /**
   * 配置数据表id(aim_config_data.id)
   */
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  @TableField("config_data_id")
  private Long configDataId;

  /**
   * 针对key的数据类型，如HASH，该字段有值
   */
  @TableField("value_key")
  private String valueKey;

  /**
   * key的value
   */
  @TableField("value_content")
  private String valueContent;

  /**
   * 描述
   */
  @TableField("value_description")
  private String valueDescription;
}
